<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>测试页面</title>
</head>
<body>
<h2>测试用网页</h2>
<button>测试事件</button>
<p></p>
<script>
    const button = document.querySelector("button");
    button.addEventListener("click", () => {
      mk.sayHi("测试一下注入的sayHi方法");
      console.log(window.mk);
      // mk.sayHi("测试一下注入的sayHi方法");
      console.log("mk对象", window.mk);
      // 查询用户信息，并写入到 p 标签中
      const userInfo = mk.queryUser();
      document.querySelector("p").innerText = JSON.stringify(userInfo);

      // mk.removeUser();
    });
</script>
<!-- 引入调试控制台 -->
<script src="./eruda.min,js"></script>
<script>
    eruda.init();
</script>
</body>
</html>